from pathlib import Path

path = Path('pi.txt')
contents = path.read_text()
print(contents)

path.write_text("hello \n hello \n hello \n")
